package com.qys.livesMall.anchor.controller.app;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.anchor.model.dto.lives.app.AppUserGradeIntegralDTO;
import com.qys.livesMall.anchor.model.vo.lives.app.UserGradeIntegralVO;
import com.qys.livesMall.anchor.service.UserGradeIntegralService;
import com.qys.livesMall.common.result.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Tag(name = "APP-带货主播的任务")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RequestMapping("/app/anchor/user/gradeIntegral")
public class AppUserGradeIntegralController {

    private final UserGradeIntegralService userGradeIntegralService;
    @PostMapping("/usergradesort")
    public R<Page<UserGradeIntegralVO>> usergradesort(@RequestBody AppUserGradeIntegralDTO dto){
        return R.ok(userGradeIntegralService.usergradesort(dto));
    }
}
